package cn.practice.chat.controller;

import cn.practice.chat.lang.Result;
import cn.practice.chat.request.regist.RegistRequest;
import cn.practice.chat.service.RegistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName RegistController
 * @Description:
 * @Author A-TAO
 * @Date 2022/11/3
 * @Version V1.0
 **/
@RestController
public class RegistController {

    @Autowired
    private RegistService registService;



    @PostMapping("/regist")
    public Result regist(@RequestBody RegistRequest request){

        return registService.userRegist(request);
    }

}
